package com.bwie.sixth.commerce.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.common.utils.PageUtils;
import com.bwie.common.utils.Query;

import com.bwie.sixth.commerce.dao.BuyDao;
import com.bwie.sixth.commerce.entity.BuyEntity;
import com.bwie.sixth.commerce.service.BuyService;


@Service("buyService")
public class BuyServiceImpl extends ServiceImpl<BuyDao, BuyEntity> implements BuyService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BuyEntity> page = this.page(
                new Query<BuyEntity>().getPage(params),
                new QueryWrapper<BuyEntity>()
        );

        return new PageUtils(page);
    }

}